{% extends "BillingBundle::user_layout.html.twig" %}
    
{% macro field(row, lname, label) %}
    <tr>
        <td class="label">
            <label id="l{{ lname }}" for="{{ lname }}">{{ label }}:</label>
        </td>
        <td class="field">
            {{ form_widget(row) }}
        </td>
        <td class="status"></td>
        <td>
            {{ form_errors(row) }}
        </td>
    </tr>
{% endmacro %}

{% block content %}

<link rel="stylesheet" type="text/css" media="screen" href="{{ asset('bundles/billing/css/validate.css') }}" />
<script src="{{ asset('bundles/billing/js/jquery.js') }}" type="text/javascript"></script>
<script src="{{ asset('bundles/billing/js/jquery.validate.js') }}" type="text/javascript"></script>
<script src="{{ asset('bundles/billing/js/validate_add_ip.js') }}" type="text/javascript"></script>

<tr>
	<td class="content">
            <div class="wrapper">
                <h1 class="ml">Заказать дополнительный ip адрес:</h1>
            </div>
            <div id="add_box">
                <div id="add_wrap">
                    <form id="add_form" method="post" action="#">
                    <table>
                    <tr>
                        <td>
                            {{ _self.field(form.count, 'count', 'Количество') }}
                        </td>
                    </tr>
                    Стоимость одного ip: {{ tarif.getAddIpCost() }} руб.
                    {{ form_widget(form._token) }}
                    <tr>
                        <td>
                        <div class="field">
                            <input name="add_order" type="submit" value="Заказать"/>
                        </div>
                        </td>
                    </tr>
                    </table>
                    </form>
               </div>
            </div>
            <div class="end"></div>
	</td>
</tr>

{% endblock %}